<?php
/**
 * Created by PhpStorm.
 * User: 94004
 * Date: 2017/12/30
 * Time: 21:26
 */
header("Content-Type:text/html;charset=utf-8;");
require_once "../util/db_helper.php";
$ids = $_POST["ids"];
$res = deleteMultipleById("comments",$ids);
$arr = array("code"=>101,"msg"=>"批量删除失败");
if($res){
    $arr["code"] = 100;
    $arr["msg"] = "批量删除成功";
}
echo  json_encode($arr,JSON_UNESCAPED_UNICODE);
?>